<template>
  <div class="register-success-container">
    <div class="card">
      <img src="@/assets/images/logo.png" alt="logo" class="logo" />
      <h2>注册成功 🎉</h2>
      <p class="message">恭喜你，账号已创建成功！你现在可以去登录或者返回首页。</p>
      <div class="actions">
        <el-button type="primary" @click="goToLogin">去登录</el-button>
        <el-button @click="goHome">回到首页</el-button>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
const router = useRouter()

const goToLogin = () => router.push('/login')
const goHome = () => router.push('/')
</script>

<style scoped>
.register-success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}
.card {
  width: 420px;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  text-align: center;
}
.logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}
.message {
  color: #666;
  margin: 12px 0 24px 0;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
</style>
